<p class="pageTitle">Region: <%= @region.name %></p>

<%= error_messages_for :region %>

<% tabnav :region do %>
  <strong>Current Descriptions:</strong>
  <% if @region.region_descriptions.collect.length > 0 %>
  <p id="click">(Click a language name to see and edit the description in that language)</p>
  <% else %>
  <p id="click" style="display:none">(Click a language name to see and edit the description in that language)</p>
  <p id="noDesc">No descriptions added yet.</p>
  <% end %>
  <%= render :partial => "admin/artwork_descriptions/edit_javascript" %>
  
    <table id='region_description_table'>
      <%= render :partial => "superadmin/region_description_row", :collection => @region.region_descriptions %>
    </table>
    
  <hr />
  
  <strong><%= RegionDescription.l_attr(:new)%>:</strong>
  <br /><br />
  <div id='add_description'>
    <div id="region_description_new_errors"></div>
      <% remote_form_for(RegionDescription.new, :url => {:action => 'region_description_add'}) do |f| %>
        <%= render :partial => 'superadmin/new_region_description', :locals => {:region => @region, :form => f} %>
      <% end %>
      
  </tr></table>
  </div>
<% end %>